﻿namespace StarsAdmin.Core.Attributes
{
    /// <summary>
    /// 接口文档排序属性
    /// </summary>
    [Serializable]
    [AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Method)]
    public class OrderAttribute : Attribute
    {
        /// <summary>
        /// 排序设置
        /// </summary>
        /// <param name="value">排序值</param>
        public OrderAttribute(int value)
        {
            Value = value;
        }

        /// <summary>
        /// 排序值
        /// </summary>
        public int Value { get; set; } = 0;
    }
}